/**
 * Created by johnson on 17/4/27.
 */
export class CommentModel {
  orderNo:string;
  score:number;
  content:string;
  image:string;
  firstScore:number = 5;
  secondScore:number = 5;
  thirdScore:number = 5;
  fourthScore:number = 5;
  fifthScore:number = 5;
  firstScoreArray = [true, true, true, true, true]
  secondScoreArray = [true, true, true, true, true]
  thirdScoreArray = [true, true, true, true, true]
  fourthScoreArray = [true, true, true, true, true]
  fifthScoreArray = [true, true, true, true, true]

  constructor(orderNo:string) {
    this.orderNo = orderNo;
  }

  genRequestData():any {
    return {
      orderNo: this.orderNo,
      score: this.firstScore,
      content: this.content,
      image: this.image
    }
  }
}
